﻿// Decompiled with JetBrains decompiler
// Type: TaleWorlds.CampaignSystem.Party.PartyTemplateStack
// Assembly: TaleWorlds.CampaignSystem, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E85F8C15-4DF6-4E9C-A58A-29177E40D07A
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\bin\Win64_Shipping_Client\TaleWorlds.CampaignSystem.dll

using System.Collections.Generic;
using TaleWorlds.SaveSystem;

#nullable disable
namespace TaleWorlds.CampaignSystem.Party
{
  public struct PartyTemplateStack
  {
    [SaveableField(0)]
    public CharacterObject Character;
    [SaveableField(1)]
    public int MinValue;
    [SaveableField(2)]
    public int MaxValue;

    public static void AutoGeneratedStaticCollectObjectsPartyTemplateStack(
      object o,
      List<object> collectedObjects)
    {
      ((PartyTemplateStack) o).AutoGeneratedInstanceCollectObjects(collectedObjects);
    }

    private void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
    {
      collectedObjects.Add((object) this.Character);
    }

    internal static object AutoGeneratedGetMemberValueCharacter(object o)
    {
      return (object) ((PartyTemplateStack) o).Character;
    }

    internal static object AutoGeneratedGetMemberValueMinValue(object o)
    {
      return (object) ((PartyTemplateStack) o).MinValue;
    }

    internal static object AutoGeneratedGetMemberValueMaxValue(object o)
    {
      return (object) ((PartyTemplateStack) o).MaxValue;
    }

    public PartyTemplateStack(CharacterObject character, int minValue, int maxValue)
    {
      this.Character = character;
      this.MinValue = minValue;
      this.MaxValue = maxValue;
    }
  }
}
